<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
let word = prompt("请输入一段话")
while (word==='神人') {
    document.write(word)
  word +=1
}
// 偶数和
let i = 1, sum = 0;
while (i <= 100) {
  if (i % 2 === 0) {   
    sum += i;
  }
  i++;
}
console.log('1 到 100 的偶数和：', sum); 
// 总和
let a = 1, sum1 = 0;
while (a <= 100) {
  sum1 += a;
  a++;
}
console.log('1 到 100 的总和：', sum1); 

  while (true) {
  let s = prompt('我帅吗');
   if (s === '帅') break;
   else{alert('不对哦')}
  }
  alert('帅')

  
   
    </script>
</body>
</html>